Skip to content

fix: prevent duplicate Antigravity CLI status reports - #21

Merged
Profreshor merged 2 commits into
mainfrom
fm/agy-osc7501-native
Nov 23, 2026
Merged

Profreshor merged 2 commits into
mainfrom
fm/agy-osc7501-native

Conversation

@Profreshor

Copy link
Copy Markdown
Owner

Intent

Stop the Herdr app showing a firstmate-launched Antigravity CLI (agy) worker with a flickering icon and status. agy 1.4.0+ reports OSC 7501 status itself, and firstmate also reported for it as firstmate-agy, so the two overwrote each other in the pane. Firstmate should stand down for agy versions that self-report, the same way it already does for claude, pi, codex, grok and muse, and keep its generic reporter for older agy.

What Changed

  • Treat Antigravity CLI (agy) 1.4.0+ and unreadable versions as native OSC 7501 reporters, skipping Firstmate’s generic watcher while retaining it for older versions.
  • Pass the resolved agy binary to the OSC capability probe and add coverage for native-version gating and launch wiring.

Risk Assessment

✅ Low: The change is tightly scoped to the agy native-version gate, preserves the generic reporter below 1.4.0, and now probes the same resolved binary that the normal launch executes.

Testing

Live PTY evidence supports the installed-agy stand-down scenario. Fixture-only scenarios and the Herdr app-visible scenario remain untested.

  • Live validation: ⚠️ inconclusive - 1 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Firstmate’s launch-time OSC bridge stands down for installed agy 1.5.15 ✅ pass live ~/.no-mistakes/evidence/01M84H099CETS3AXWFSSXRYT0J/agy-native-osc7501-live.txt
Older and unreadable agy versions retain safe generic-reporter behavior ⏸️ untested no The prior payload recorded only fixture-based test coverage and did not establish a live result for this scenario.
A resolved agy binary wins over a differing PATH binary ⏸️ untested no The prior payload recorded only controlled fixture coverage and did not establish a live result for this scenario.
A native agy worker appears in the Herdr app without competing-root flicker ⏸️ untested no The current agent is outside a Herdr-managed pane. Herdr’s installed control policy requires HERDR_ENV=1 before inspecting or operating any Herdr session, so creating the required isolated fm-lab se…
Evidence: Live native agy OSC gate evidence

Source: Live native agy OSC gate evidence

scenario=native-agy-1.5.15-launch-gate
agy_path=~/.linuxbrew/bin/agy
agy_version=1.5.15
reporter_exit=0
pty_transcript_bytes=605
generic_watcher_files=0
result=stand-down
generic_osc7501_sequences=0
- Outcome: ⚠️ 1 warning across 1 run (4m54s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • 🚨 bin/fm-osc7501.sh:268 - The new native gate probes bare agy, but normal launches execute the separately resolved absolute $AGY_BIN while passing --agent-bin agy. If the pane resolves agy to 1.3.9 while Firstmate launches /new/agy 1.4.0, the probe arms firstmate-agy and the launched native writer recreates the competing-root-record flicker. Pass the resolved $AGY_BIN to the OSC reporter for agy (as done for Pi/Muse) and cover the differing-PATH case.

🔧 Fix applied.
✅ Re-checked - no issues remain.

⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (1 of 4 scenarios were driven live against the product); untested: Older and unreadable agy versions retain safe generic-reporter behavior, A resolved agy binary wins over a differing PATH binary, A native agy worker appears in the Herdr app without competing-root flicker
  • Live validation: ⚠️ inconclusive - 1 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Firstmate’s launch-time OSC bridge stands down for installed agy 1.5.15 ✅ pass live ~/.no-mistakes/evidence/01M84H099CETS3AXWFSSXRYT0J/agy-native-osc7501-live.txt
Older and unreadable agy versions retain safe generic-reporter behavior ⏸️ untested no The prior payload recorded only fixture-based test coverage and did not establish a live result for this scenario.
A resolved agy binary wins over a differing PATH binary ⏸️ untested no The prior payload recorded only controlled fixture coverage and did not establish a live result for this scenario.
A native agy worker appears in the Herdr app without competing-root flicker ⏸️ untested no The current agent is outside a Herdr-managed pane. Herdr’s installed control policy requires HERDR_ENV=1 before inspecting or operating any Herdr session, so creating the required isolated fm-lab se…
  • tests/fm-osc7501.test.sh
  • tests/fm-agy-harness.test.sh
  • Live PTY execution of bin/fm-osc7501.sh arm with installed ~/.linuxbrew/bin/agy 1.5.15
  • git diff 0c82d6dd80290f8ab849795623d3f378e66fbea6 cb96a906d030c3e2903672900fcf7a47e4565893 | jev find "a change unrelated to preventing duplicate OSC 7501 reporting for native Antigravity CLI workers" (no unrelated hunks flagged)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

agy has written its own OSC 7501 records since 1.4.0, but osc_native had
no floor for it, so the bridge armed a watcher beside it. The two writers
took turns replacing the pane's single root record: app=antigravity from
agy, then app=firstmate-agy from the bridge. Terminals that key a pane's
identity on the record's app saw the agent change name between reports.

Give agy a 1.4.0 floor so the bridge stands down, as it does for claude,
pi, codex, grok and muse. An older agy keeps the generic reporter and an
agy whose version cannot be read counts as native.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T15:59:39.933632Z cb96a90 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Profreshor
Profreshor merged commit f170d0b into main Nov 23, 2026
45 of 47 checks passed
@Profreshor
Profreshor deleted the fm/agy-osc7501-native branch November 23, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant